<?php

    require('_header.php');
    
    $id = $_GET['id'];
	
    $contact = $db->get_results("SELECT * FROM contacts WHERE id=$id");
    echo json_encode($contact);

?>